//
//  FaceLoginViewController.m
//  VisitorFacetestingSystem
//
//  Created by 张斌 on 16/7/5.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "FaceLoginViewController.h"
#import "AppDelegate.h"

@interface FaceLoginViewController ()
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *height;
@property (weak, nonatomic) IBOutlet UIView *MainView;
@end

@implementation FaceLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //1.创建手势识别对象
    UISwipeGestureRecognizer * rightSwipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)];
    
    //2.设置属性
    rightSwipe.direction = UISwipeGestureRecognizerDirectionRight;
    
    //3.添加到要作用的view上
    [self.view addGestureRecognizer:rightSwipe];
    self.title = @"人脸登录";
    self.navigationController.navigationBarHidden = NO;
    
//    [AppDelegate storyBoradAutoLay:self.MainView];
}
- (void) swipe:(UISwipeGestureRecognizer *) swipeGesture
{
    
    [self.navigationController popViewControllerAnimated:YES];
}


- (IBAction)back:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
